
#采用md5加密封装
import hashlib

def get_md5(string):
    md5 = hashlib.md5()
    md5.update(bytes(string, encoding='utf-8'))
    password = md5.hexdigest()
    return password